def f1():
    for i in range(2):
        yield i

g = f1()
# print(g.__next__())
# print(g.__next__())
# print(g.__next__())
while True:
    try:
        print(g.__next__())
    except:
        break